﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;
using System.IO;

namespace CopyIt
{
    public partial class DisplayReport : UserControl
    {
        public event EventHandler Close;
        public DisplayReport(string report)
        {
            InitializeComponent();

            string reportPath = Path.Combine(Path.GetDirectoryName(Application.ExecutablePath), report);
            webBrowser1.Navigate(reportPath);
        }

        private void tsbExit_Click(object sender, EventArgs e)
        {
            if (Close != null)
                Close(this, e);
        }
    }
}
